gesturesingle: check for the sequence being handled, not just the event
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 20 Nov 2014 12:25:40 +0000 (13:25 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 18 Dec 2014 20:20:17 +0000 (21:20 +0100)
commitdca2f4386dbbefe842efd4bcab5fcd0b661b72dd
treec88b35bf7f7520c9681517dcd634390e62b44349
parentce8dc5186127ae175610366671a30d69625ebaa9
gesturesingle: check for the sequence being handled, not just the event

Checking the return value was valid for most gestures, but
GtkGestureLongPress, where the first press triggers internally an action,
but does nothing for the sequence to be claimed/denied, FALSE was eventually
returned, and the button/sequence functions would be incorrect when
::pressed is emitted.

So check that the sequence is being handled by the gesture, this is more
desirable than the return value as it's independent of sequence state,
and still will be FALSE for the cases we want to catch here.
gtk/gtkgesturesingle.c